package com.borrowed.book.membercard.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.borrowed.book.membercard.entity.SMemberCard;
import com.borrowed.book.membercard.entity.SMembercardUser;

import java.util.List;

/**
*
*/
public interface SMembercardUserService extends IService<SMembercardUser> {
    /**
     * 查询用户绑定的会员卡信息
     * @param openId
     * @return
     */
    public List<SMembercardUser> getMembercardUser(String openId);
    /**
     *
     */
    public    boolean  ValidityPeriod(SMembercardUser sMembercardUser);
    /**
     * 新增用户会员卡信息
     */
    public Boolean addMembercardUser(SMemberCard sMemberCard,String openId);
    /**
     * 获取当前时间的有效会员信息
     */
    public SMembercardUser getCurrentMembercardUser();
}
